-- GENERATED SPELL FOR [Infinite Hunter] --


function spell0_27743(pUnit, Event) --@Accelerate,Self--
pUnit:FullCastSpellOnTarget(52635,pUnit)
pUnit:RegisterEvent('Sorts_27743', 30283, 1)
end

function spell1_27743(pUnit, Event) --@Accelerate,Self--
pUnit:FullCastSpellOnTarget(58820,pUnit)
pUnit:RegisterEvent('Sorts_27743', 30327, 1)
end

function spell2_27743(pUnit, Event) --@Time Shift,Self--
pUnit:FullCastSpellOnTarget(52636,pUnit)
pUnit:RegisterEvent('Sorts_27743', 258, 1)
end

function Sorts_27743(pUnit, Event)
local choix_sorts_27743 = math.random(0, 2)
if choix_sorts_27743 == 0 then
pUnit:RegisterEvent('spell0_27743', 1, 1)
end
if choix_sorts_27743 == 1 then
pUnit:RegisterEvent('spell1_27743', 1, 1)
end
if choix_sorts_27743 == 2 then
pUnit:RegisterEvent('spell2_27743', 1, 1)
end
end

function mob27743_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27743', math.random(1500, 3000), 1)
end

function mob27743_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27743_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27743_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27743, 1, 'mob27743_Action')
RegisterUnitEvent(27743, 2, 'mob27743_Leave')
RegisterUnitEvent(27743, 3, 'mob27743_Kill')
RegisterUnitEvent(27743, 4, 'mob27743_Die')
